package com.glodon.paas.account.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.glodon.paas.account.dao.domain.OAuthTokenEntity;

public interface OAuthTokenEntityMapper {
    int deleteByPrimaryKey(String value);

    int insert(OAuthTokenEntity record);

    int insertSelective(OAuthTokenEntity record);

    OAuthTokenEntity selectByPrimaryKey(String value);

    int updateByPrimaryKeySelective(OAuthTokenEntity record);

    int updateByPrimaryKey(OAuthTokenEntity record);

	void deleteByConsumerKeyAuthorizerId(
			@Param("consumerKey")String consumerKey,
			@Param("authorizerId")String authorizerId);

	List<OAuthTokenEntity> selectAccessTokens(
			@Param("authId")String authId, 
			@Param("accessToken")boolean accessToken
			);
}
